package xyz.bali16.module.article.model.tag;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("添加标签参数")
public class TagAddParam {

    @ApiModelProperty(name = "text", value = "标签id", required = false)
    @NotNull(message = "标签id不能为空")
    private String id;

    @ApiModelProperty(name = "text", value = "标签名字", required = true)
    @NotNull(message = "标签名字不能为空")
    private String name;

    @ApiModelProperty(name = "url", value = "标签名字", required = false)
    @NotNull(message = "url链接不能为空")
    private String url;
}
